package com.sinven.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * NideshopCart entity. @author MyEclipse Persistence Tools
 */
/**
 * 李志伟
 * 反向生成
 */
@Entity
@Table(name = "nideshop_cart", catalog = "csf")
public class Cart implements java.io.Serializable {

    // Fields

    private Integer id;
    private Integer userId;
    private Integer goodsId;
    private String goodsSn;
    private Double retailPrice;
    private Short number;
    private String goodsSpecifitionNameValue;
    private String listPicUrl;
    private Boolean check;

    // Constructors

    /** default constructor */
    public Cart() {
    }

    /** minimal constructor */
    public Cart(Integer userId,Integer goodsId,
                        String goodsSn) {
        this.userId = userId;
        this.goodsId = goodsId;
        this.goodsSn = goodsSn;
    }

    /** full constructor */
    public Cart(Integer userId, Integer goodsId,
                        String goodsSn,  Double retailPrice,
                        Short number, String goodsSpecifitionNameValue, String listPicUrl,
                        Boolean check) {
        this.userId = userId;
        this.goodsId = goodsId;
        this.goodsSn = goodsSn;
        this.retailPrice = retailPrice;
        this.number = number;
        this.goodsSpecifitionNameValue = goodsSpecifitionNameValue;
        this.listPicUrl = listPicUrl;
        this.check = check;
    }

    // Property accessors
    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "user_id", nullable = false)
    public Integer getUserId() {
        return this.userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    @Column(name = "goods_id", nullable = false)
    public Integer getGoodsId() {
        return this.goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    @Column(name = "goods_sn", nullable = false, length = 60)
    public String getGoodsSn() {
        return this.goodsSn;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }


    @Column(name = "retail_price", precision = 10)
    public Double getRetailPrice() {
        return this.retailPrice;
    }

    public void setRetailPrice(Double retailPrice) {
        this.retailPrice = retailPrice;
    }

    @Column(name = "number")
    public Short getNumber() {
        return this.number;
    }

    public void setNumber(Short number) {
        this.number = number;
    }

    @Column(name = "goods_specifition_name_value", length = 65535)
    public String getGoodsSpecifitionNameValue() {
        return this.goodsSpecifitionNameValue;
    }

    public void setGoodsSpecifitionNameValue(String goodsSpecifitionNameValue) {
        this.goodsSpecifitionNameValue = goodsSpecifitionNameValue;
    }

    @Column(name = "list_pic_url")
    public String getListPicUrl() {
        return this.listPicUrl;
    }

    public void setListPicUrl(String listPicUrl) {
        this.listPicUrl = listPicUrl;
    }

    @Column(name = "check")
    public Boolean getCheck() {
        return this.check;
    }

    public void setCheck(Boolean check) {
        this.check = check;
    }

}